<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import="java.util.*"%>
<%@ page import="com.hz.util.*" %>
<%@ page import="com.hz.model.*" %>
<%@ page import="com.hz.control.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>comment delete</title>
	</head>

	<body>
		<%
  		int id=ParamUtil.getInt(request,"id",0);
  		//CoachControl cc=new CoachControl();
  		if(CommentControl.deleteComment(id))
    		{
        %>
        <script language="javascript">
        //alert("删除成功!");
        //window.location.href="comment.jsp";
        //history.go(-1);
        //后退并刷新后退到的页面
        window.location.href=document.referrer;
        </script>
		<%} else { %>
		<script language="javascript">
        alert("删除失败!");
        //window.location.href="comment.jsp";
          history.go(-1);
        </script>
        <%} 
        %>
  	
	</body>
</html>
